$primary: #3DB0E7;
$success: #B6A2DF;
$warning: #FFB97F;
$danger: #d10a5a;
$info: #3e3e3e;

body {
  font-family: 'Microsoft YaHei', serif;
}

.el-menu--horizontal .el-menu-item {
  height: 39px !important;
  line-height: 39px !important;
  margin: 5px;
  padding: 0 12px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  &:hover {
    background-color: #3DB0E7;
    color: #fff;
    font-weight: bold;
  }
}

.tags-view-item {
  border-radius: 5px;

  &.active {
    background-color: #DAEAF9 !important;
    border-color: #DAEAF9 !important;
    color: #303133 !important;

    &:before {
      top: -2px;
      width: 4px !important;
      height: 4px !important;
      background-color: #303133 !important;
    }
  }

  .el-icon-close:before {
    transform: scale(1) !important;
  }
}

.el-table {
  thead {
    th {
      background-color: #DAEAF9;
      color: #303133;
      font-weight: bold;
      padding: 5px 0;
      border: none !important;
    }
  }
  td {
    border-bottom: 1px solid #3DB0E7 !important;
    clear: both;
    //border-top-color: #3DB0E7;
  }
  .el-checkbox__input.is-checked {
    .el-checkbox__inner {
      border-color: red;
      background-color: transparent;
      &:after {
        border-color: red;
      }
    }
  }
  .el-checkbox__input {
    .el-checkbox__inner {
      border: 1.5px solid #303133;
    }
  }
  .dark-background {
    background: rgba(215, 218, 218, 0.58);
  }
  .current-row {
    > td {
      background-color: #cbe3fb !important;
    }
  }
}

.el-dialog__header {
  background-color: #DAEAF9;
  span {
    color: #303133 !important;
  }
}

.el-button {
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

@each $type, $color in (
  primary:$primary,
  success:$success,
  info:$info,
  warning:$warning,
  danger:$danger,
) {
  .el-button--#{$type} {
    color: #fff;
    background-color: $color;
    border-color: $color;
    &:focus, &:hover {
      color: $color;
      background-color: #fff;
      border-color: $color;
    }
  }
  .el-button--#{$type}.is-plain {
    color: $color;
    &:focus, &:hover {
      background: $color;
      border-color: $color;
    }
  }
  .el-button--#{$type}.button-icon {
    background-color: transparent;
    border: transparent;
    width: inherit !important;
    font-size: 150%;
    font-weight: bold;
    &.el-button--#{$type} {
      color: $color
    }
    &:focus, &:hover {
      color: #fff;
      background-color: $color;
      border: $color;
    }
  }
  .el-tag--#{$type} {
    color: #fff !important;
    background-color: $color !important;
    border-color: $color !important;
  }
  .card-#{$type} {
    .el-card__header {
      background-color: $color;
      color: #fff;
    }
  }
}

.el-collapse-item__content {
  margin: 0;
}

.pagination-container {
  text-align: center;
}

.form-button-bar {
  width: 100%;
  .el-form-item__content {
    width: 100%;
  }
}

.search-bar-button {
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
}

.search-bar-hide {
  transition: all .3s ease-in-out;
  display: none;
}

.el-dialog__close {
  font-weight: bold;
  font-size: 120%;
  color: #000 !important;
}

.el-input-group__append .el-button {
  margin: -1px -20px;
}

_:-ms-lang(x),
.el-tree {
  width: 320px;
}

_:-ms-lang(x),
.tree-label {
  max-width: 110px !important;
}

_:-ms-lang(x),
.fade-enter, .fade-enter-active, .fade-enter-to, .fade-leave, .fade-leave-active, .fade-leave-to {
  transition: none;
}

.el-popover.el-popper {
  &::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: #ddd;
  }

  /*定义滚动条轨道 内阴影+圆角*/
  &::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #F5F5F5;
  }

  /*定义滑块 内阴影+圆角*/
  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #888;
  }
}

.tree-label {
  line-height: 1rem;
  vertical-align: middle;
}

code {
  margin: 0;
  padding: 0;
}

.search-form {
  .el-form-item {
    margin-bottom: 10px !important;
  }
}

//.el-dialog {
//.el-input__inner {
//  min-height: 39px !important;
//}
//}

.record-popover {
  box-shadow: 0 0 20px 5px;
  max-height: 400px;
}

.tree-label {
  display: inline-block;
  max-width: 160px;
  text-overflow: ellipsis;
  overflow: hidden;
}
